package cate.game.role.res.leader.hallows.msg;

import cate.common.annotation.FuncOpenJudge;
import cate.common.annotation.OperationSetter;
import cate.common.table.d.GDFunc;
import cate.common.table.d.GDOperation;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBRole;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "圣器重铸的请求")
@OperationSetter(value = GDOperation.HALLOWS_BACK, sub = "type")
@FuncOpenJudge(GDFunc.HALLOWS)
public class HallowsBackReq implements MsgInput {
    @NoteField(value ="圣器类型")
    public int type;

    @Override
    public MsgConfig conf() {
        return MsgIdBRole.HALLOWS_BACK_REQ;
    }

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getRes().leader.hallows.backHallows(type);
    }
}
